package o;

import com.huawei.appgallery.purchasehistory.ui.bean.AppInfo;
import java.util.List;

public class ctu {
    public static String ˏ(List<AppInfo> list) {
        StringBuffer stringBuffer = new StringBuffer();
        if (list != null) {
            for (int i = 0; i < list.size(); i++) {
                stringBuffer.append(((AppInfo) list.get(i)).ˏ());
                if (i != list.size() - 1) {
                    stringBuffer.append(",");
                }
            }
        }
        return stringBuffer.toString();
    }

    public static boolean ॱ(List<AppInfo> list) {
        for (AppInfo ˋ : list) {
            if (ˋ.ˋ() == 0) {
                return false;
            }
        }
        return true;
    }

    public static void ˊ(List<AppInfo> list, int i, int i2, ctc o_ctc) {
        if (i == 0) {
            ((AppInfo) list.get(i2)).ˊ(o_ctc.ॱ());
            return;
        }
        int ˋ = o_ctc.ˋ();
        for (AppInfo ˊ : list) {
            ˊ.ˊ(ˋ);
        }
    }

    public static void ˏ(List<AppInfo> list, int i, ctc o_ctc) {
        if (list != null) {
            ((AppInfo) list.get(i)).ˊ(o_ctc.ॱ());
        }
    }

    public static void ˎ(List<AppInfo> list, int i, ctc o_ctc) {
        int i2 = 1;
        if (list != null) {
            AppInfo appInfo = (AppInfo) list.get(i);
            if (o_ctc.ॱ() == 1) {
                i2 = 0;
            }
            appInfo.ˊ(i2);
        }
    }
}
